s='hello world \n'
print(">>"+s+"<<")
print(">>"+s.strip()+"<<")
print(">>"+s.lstrip()+"<<")
print(">>"+s.rstrip()+"<<")

print('*'*30)


w='hello world \n'
print(">>"+w+"<<")
print(">>"+w.strip()+"<<")
print(">>"+w.lstrip()+"<<")
print(">>"+w.rstrip()+"<<")